package com.ssm.pre.dao;

import java.util.List;
import java.util.Map;

public interface WechatMenuDao {

	//查找相同的菜单版本号
	List<Map<String, Object>> selectMenuByVersion(Map<String, Object> map)throws Exception;

	//查询一级菜单的子菜单
	List<Map<String, Object>> selectMenuByBelong(Map<String, Object> bean)throws Exception;

	//添加菜单 一级菜单
	void addMenuByOne(Map<String, Object> map)throws Exception;

	//根据ID修改菜单一条记录
	void updateMenuById(Map<String, Object> params)throws Exception;

	//根据ID查询菜单一条记录
	Map<String, Object> selectMenuById(Map<String, Object> map)throws Exception;

	//根据menuBelong修改hasChild
	void updateMenuHasChildById(Map<String, Object> params)throws Exception;

	//修改Publish发布状态
	void updateWetherPublish()throws Exception;

	//修改菜单的发布人和发布状态
	void updateMenuPublish(Map<String, Object> map)throws Exception;

	//查询所有的微信自定义菜单
	List<Map<String, Object>> queryAllByGrade(Map<String, Object> map)throws Exception;

	//查询所有的微信自定义菜单
	List<Map<String, Object>> queryMenuByList(Map<String, Object> map)throws Exception;

	//根据ID删除一条菜单记录（联动删除 一级和二级菜单全删）
	void deleteMenuById(Map<String, Object> map)throws Exception;

}
